package com.xiongwei.ideaNubilityFunction;

/**
 * to do
 *
 * @author XiongWei
 * @date 2021/1/24
 */
public class ThreadDebug {

    public static void main(String[] args) {
        ThreadDebug tb = new ThreadDebug();
        tb.multiThreadTest();

    }

    public void multiThreadTest() {
        Thread t = new Thread(()->{
            System.out.println("线程1内方法");
        },"线程1");
        Thread t2 = new Thread(()->{
            System.out.println("线程2内方法");
        },"线程2");
        Thread t3 = new Thread(()->{
            System.out.println("线程3内方法");
        },"线程3");
        //System.out.println(t.getName());
        t.start();
        t2.start();
        t3.start();
    }
}


